<!--
////////////////////////////////////////////////////////////////////
//                          _ooOoo_                               //
//                         o8888888o                              //
//                         88" . "88                              //
//                         (| ^_^ |)                              //
//                         O\  =  /O                              //
//                      ____/`---'\____                           //
//                    .'  \\|     |//  `.                         //
//                   /  \\|||  :  |||//  \                        //
//                  /  _||||| -:- |||||-  \                       //
//                  |   | \\\  -  /// |   |                       //
//                  | \_|  ''\---/''  |   |                       //
//                  \  .-\__  `-`  ___/-. /                       //
//                ___`. .'  /--.--\  `. . ___                     //
//              ."" '<  `.___\_<|>_/___.'  >'"".                  //
//            | | :  `- \`.;`\ _ /`;.`/ - ` : | |                 //
//            \  \ `-.   \_ __\ /__ _/   .-` /  /                 //
//      ========`-.____`-.___\_____/___.-`____.-'========         //
//                           `=---='                              //
//      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^        //
//                           佛祖保佑   http://dlj.bz              //
////////////////////////////////////////////////////////////////////
-->
<!DOCTYPE html>
<html lang="en" xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.w3.org/1999/xhtml">
<head runat="server">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=0, minimal-ui">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta http-equiv="Pragma" content="no-cache">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="apple-mobile-web-app-status-bar-style" content="black">
<meta name="Keywords" content="免费快速纯净无广告免费短网址在线生成网站u1rl.cn短链接、短网址、网址压缩、免费链接在线生成">
<meta name="Description" content="免费短网址在线生成、免费链接在线生成为您提供所有网址包括图片、flash、mp3、rar、7z等所有互联网地址，免费快速纯净无广告短网址压缩网站！">
<title>免费好用短链接在线生成免费短链接在线生成快速纯净无广告网址压缩u1rl.cn</title>
<link href="res/css/bootstrap.min.css" rel="stylesheet" />
<link href="res/css/bootstrap-responsive.min.css" rel="stylesheet" />
<link href="res/lib/artdialog/ui-dialog.css" rel="stylesheet" />
<link href="res/css/i.css" rel="stylesheet" />
<link href="res/css/docs.css?3" rel="stylesheet" />
<link href="res/css/my.css?3" rel="stylesheet" />
<script src="res/js/jquery.js"></script>
<script src="res/lib/jQuery-qrcode/jquery.qrcode.min.js"></script>
<script src="res/lib/artdialog/dialog-min.js"></script>
<script src="res/lib/clipboard.min.js"></script>
<link href="https://cdn.bootcss.com/toastr.js/2.1.4/toastr.min.css" rel="stylesheet">
<script src="https://cdn.bootcss.com/toastr.js/2.1.4/toastr.min.js"></script>
<script src="res/js/i.js"></script>
<script src="config.js"></script>
<script src="res/lib/bootstrap.min.js"></script>
<script src="res/lib/layer/layer.js"></script>
	<script src="res/js/websocket.js"></script>

	<style>
		.bs-docs-example:after {
			content: "api文档";
		}

		.fields li{
			line-height: 30px;
		}
	</style>
</head>
<body>

<div id="header"></div>
<div class="container" style="margin-top: 26px;">

	<!-- Docs nav
    ================================================== -->
	<div class="row">
		<div class="span3 bs-docs-sidebar">
			<ul class="nav nav-list bs-docs-sidenav">
				<li><a href="./index.html"><i class="icon-chevron-right"></i> 首页</a></li>
				<li><a href="./config.html"><i class="icon-chevron-right"></i> 管理员配置</a></li>
				<li><a href="my.html"><i class="icon-chevron-right"></i> 个人信息</a></li>
				<li><a href="resetPassword.html"><i class="icon-chevron-right"></i> 修改密码</a></li>
				<li><a href="apiKey.html"><i class="icon-chevron-right"></i> api秘钥</a></li>
				<li class="active"><a href="javascript:void(0)"><i class="icon-chevron-right"></i> api文档</a></li>
				<li ><a href="javascript:SubmitLogout()"><i class="icon-chevron-right"></i> 退出</a></li>
			</ul>
		</div>
		<div class="span9 subCon  bs-docs-example" style="padding-top: 20px;">
			<div class="tabbable" style="margin: 20px"> <!-- Only required for left/right tabs -->
				<ul class="nav nav-tabs">
					<li class="active"><a href="#Curl" data-toggle="tab">Curl</a></li>
					<li><a href="#Java" data-toggle="tab">Java</a></li>
					<!--<li><a href="#Php" data-toggle="tab">Php</a></li>
					<li><a href="#C" data-toggle="tab">C</a></li>
					<li><a href="#C1" data-toggle="tab">C#</a></li>
					<li><a href="#JS" data-toggle="tab">JS</a></li>
					<li><a href="#Python" data-toggle="tab">Python</a></li>
					<li><a href="#Nodejs" data-toggle="tab">Nodejs</a></li>
					<li><a href="#Go" data-toggle="tab">Go</a></li>
					<li><a href="#Objective" data-toggle="tab">Objective-C</a></li>
					<li><a href="#Swfit" data-toggle="tab">Swfit</a></li>-->
				</ul>
				<div class="tab-content">
					<div class="tab-pane active" id="Curl">
						<div class="panel-body">
						  <pre>
							  <code>
curl ${WebSite.url}/url/eadd \
-H 'Content-Type: application/json' \
-H 'access_token: ${token}' \
-d '{"longurl":"http://toocruel.net","timeCount":"1","timeUnit":"年","count":"",
"countUnit":"次","password":"","tarea":"","timezone":"CTT"}'

{"code":0,"data":{"d":"http://localhost:8080/2WM8"}}</code>
						  </pre>
						</div>
						<h5>字段说明：</h5>
						<ul class="fields">
							<li><span>longurl</span>:<span>长链接</span></li>
							<li><span>timeCount</span>:<span>时长</span></li>
							<li><span>timeUnit</span>:<span>时长单位（例：分、时、天、月、年）</span></li>
							<li><span>count</span>:<span>访问限制次数或IP数</span></li>
							<li><span>countUnit</span>:<span>次数还是IP(例：次、IP)</span></li>
							<li><span>password</span>:<span>访问密码</span></li>
							<li><span>tarea</span>:<span>访问时长限制（例：0-24，全天都可访问）</span></li>
							<li><span>timezone</span>:<span>时区（例：CTT，Asia/Shanghai，默认值）</span></li>
						</ul>
					</div>
					<div class="tab-pane" id="Java">
						<div class="panel-body markdown">
						  <pre>
							  <code>
OkHttpClient client = new OkHttpClient();

MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\"longurl\":\"http://toocruel.net\",\"timeCount\":\"30\",\"timeUnit\":\"天\",\"count\":\"\",\"countUnit\":\"次\",\"password\":\"\",\"tarea\":\"\",\"timezone\":\"CTT\"}");
Request request = new Request.Builder()
  .url(${WebSite.url}/url/eadd")
  .post(body)
  .addHeader("content-type", "application/json")
  .addHeader("access_token", "${token}")
  .build();

Response response = client.newCall(request).execute();
							   </code>
						  </pre>
						</div>
					</div>
					<div class="tab-pane" id="Php">
						<div class="panel-body markdown">
						  <pre>
							  <code>

							   </code>
						  </pre>
						</div>
					</div>
					<div class="tab-pane" id="C">
						<div class="panel-body markdown">
						  <pre>
							  <code>

							   </code>
						  </pre>
						</div>
					</div>
					<div class="tab-pane" id="C1">
						<div class="panel-body markdown">
						  <pre>
							  <code>

							   </code>
						  </pre>
						</div>
					</div>
					<div class="tab-pane" id="JS">
						<div class="panel-body markdown">
						  <pre>
							  <code>

							   </code>
						  </pre>
						</div>
					</div>
					<div class="tab-pane" id="Python">
						<div class="panel-body markdown">
						  <pre>
							  <code>

							   </code>
						  </pre>
						</div>
					</div>
					<div class="tab-pane" id="Nodejs">
						<div class="panel-body markdown">
						  <pre>
							  <code>

							   </code>
						  </pre>
						</div>
					</div>
					<div class="tab-pane" id="Go">
						<div class="panel-body markdown">
						  <pre>
							  <code>

							   </code>
						  </pre>
						</div>
					</div>
					<div class="tab-pane" id="Objective">
						<div class="panel-body markdown">
						  <pre>
							  <code>

							   </code>
						  </pre>
						</div>
					</div>
					<div class="tab-pane" id="Swfit">
						<div class="panel-body markdown">
						  <pre>
							  <code>

							   </code>
						  </pre>
						</div>
					</div>

				</div>
			</div>
		</div>
	</div>
</div>


<div id="footer"></div>

<script>


	$("code").each(function (i,n) {
        var body = $(this).html();
        body = body.replace("${WebSite.url}",config.api)
        body = body.replace("${token}",getToken())
        $(this).html(body)
    })



</script>

</body>
</html>